﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Client
{
    /// <summary>
    /// 常量
    /// </summary>
    public static class Consts
    {
        /// <summary>
        /// 检查服务器响应发生的错误，该错误表示服务器的响应结果被修改
        /// </summary>
        public const int CHECK_SERVER_RESPONSE_ERROR = -10000;

        /// <summary>
        /// 服务器响应参数格式错误
        /// </summary>
        public const int SERVER_RESPONSE_PARAM_FROMAT_ERROR = 1;

        /// <summary>
        /// 服务器响应 缺少参数
        /// </summary>
        public const int SERVER_RESPONSE_LACK_PARAM = 2;

        /// <summary>
        /// 服务器响应签名错误
        /// </summary>
        public const int SERVER_RESPONSE_SING_ERROR = 100;

        /// <summary>
        /// 服务器响应的时间与当前时间间隔毫秒数
        /// </summary>
        public const int SERVER_RESPONSE_TIMESTAMP_DIFF_MILLISECONDS = 1000 * 60 * 5;


        /// <summary>
        /// 发布信息
        /// </summary>
        public static class ReleaseInfo
        {
            /// <summary>
            /// 文件版本
            /// </summary>
            public const string FileVersion = "0.1.0.6";

            /// <summary>
            /// 程序集版本
            /// </summary>
            public const string AssemblyVersion = "4.5.2.0";

            /// <summary>
            /// 公司名称
            /// </summary>
            public const string Company = "贵州贵农科技有限公司";

            /// <summary>
            /// 商标
            /// </summary>
            public const string Trademark = "GuiNong";

            /// <summary>
            /// 版本
            /// </summary>
            public const string Copyright = "Copyright ©  2015 - 2016";
        }
    }
}
